<?php
/**
 * Created by PhpStorm.
 * User: 94004
 * Date: 2017/12/30
 * Time: 21:33
 */
header("Content-Type:text/html;charset=utf-8;");
require_once "../util/db_helper.php";
$status = 1;
$ids = $_POST["ids"];
$res = updateMultipleById("comments", $ids, $status);
$arr = array("code" => 101, "msg" => "批量批准失败");
if ($res) {
    $arr["code"] = 100;
    $arr["msg"] = "批量批准成功";
}
echo json_encode($arr, JSON_UNESCAPED_UNICODE);
?>